package com.lzw.mapper.student;

import com.lzw.pojo.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

@Mapper
public interface StudentM {

    // 查询个人信息
    @Select("SELECT name, username, gender, phone, email, building_id, image, dormitory_Id FROM dormitorymanagement.student WHERE username = #{username}")
    Map<String, Object> getInfo(@Param("username") String username);

    //更新个人信息
    void update(Student student);
}
